#include <stdio.h>
#include <iostream>
#include "opencv2/opencv.hpp"
#include"opencv2/core/core.hpp"
#include "opencv2/highgui/highgui.hpp"
#include"opencv2/xfeatures2d.hpp"
using namespace cv;
using namespace std;
int main()
{
	Mat imag_source = imread("E:\\picture\\Lena.jpg");
	Mat image_hsv, hsv_Channel[3],RBG_Channel[3];
    
	split(imag_source, RBG_Channel);
	imshow("source_image", imag_source);
	imshow("Blue", RBG_Channel[0]);
	imshow("Green", RBG_Channel[1]);
	imshow("Red", RBG_Channel[2]);
	waitKey(0);

	
    cvtColor(imag_source, image_hsv, COLOR_BGR2HSV);
	imshow("source_image", imag_source);
	split(image_hsv, hsv_Channel);
	imshow("hune", hsv_Channel[0]);
	imshow("Saturation", hsv_Channel[1]);
	imshow("Value", hsv_Channel[2]);
	

	waitKey(0);
	return 0;
}